import React from 'react'
import { NavLink, Outlet } from 'react-router-dom'

export default function Home() {
  return (
    <div>
      <h2>二级分类</h2>
      <ul>
        <li>
          <NavLink to="news">新闻</NavLink>
        </li>
        <li>
          <NavLink to="message">信息</NavLink>
        </li>
      </ul>
      <Outlet />
    </div>
  )
}
